package com.zg.scf.domain.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class ScfUserPageReq {
    @ApiModelProperty(value = "页数", required = true)
    @NotNull(message = "【页数】字段不能为NULL")
    @Min(value = 1, message = "请选择正确页数")
    private long page = 1;

    @ApiModelProperty(value = "行数", required = true)
    @NotNull(message = "【行数】字段不能为NULL")
    @Min(value = 1, message = "请选择正确行数")
    private long pageSize = 10;

    @ApiModelProperty(value = "机构名称")
    private String companyName;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "手机号")
    private String phone;
}
